{% for item in items|default(null) if items %}
  {% if item.type == 'material' %}
    {% include 'question-bank/widgets/picked-item/material-question-item.html.twig' %}
  {% else %}
    {% include 'question-bank/widgets/picked-item/question-item.html.twig' %}
  {% endif %}
{% endfor %}